﻿<Window x:Class="WpfIgnData.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="WpfIgnData"
        Height="480"
        Width="600"
        Topmost="True" 
        FocusManager.FocusedElement="{Binding ElementName=txtX}">
    <DockPanel>
        <ToolBar Height="Auto"
                 Name="toolBar1"
                 DockPanel.Dock="Top">
            <Label Target="{Binding ElementName=txtX}">_X:</Label>
            <TextBox x:Name="txtX"
                     Width="50"
                     TextDecorations="None">410000</TextBox>
            <Label Target="{Binding ElementName=txtY}">_Y:</Label>
            <TextBox x:Name="txtY"
                     Width="60">4510000</TextBox>
            <Button x:Name="btnLoad"
                    Click="btnLoad_Click"><AccessText>_Load</AccessText></Button>
        </ToolBar>
        <StatusBar Height="Auto"
                   Name="statusBar1"                   
                   DockPanel.Dock="Bottom" >
            <Label x:Name="pxPos"></Label>
        </StatusBar>
        <ScrollViewer Margin="0,0,0,0"
                      Name="ScrollViewer"
                      HorizontalScrollBarVisibility="Auto"
                      VerticalScrollBarVisibility="Auto"
                      DockPanel.Dock="Left">
            <Image Margin="2"
                   Name="mapImage"
                   Stretch="None"
                   MouseMove="mapImage_MouseMove" ></Image>
        </ScrollViewer>

    </DockPanel>
</Window>
